<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: SDK/all/include/JCGroup.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ca6309d378ceffb9970caf11a0592736.html">SDK</a></li><li class="navelem"><a class="el" href="dir_df301a42bdb8674e37034074c8aa490e.html">all</a></li><li class="navelem"><a class="el" href="dir_2a90b483303ce0af7319f0f0fd0c54ed.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JCGroup.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160; </div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;JCGroupCallback.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;JCClient.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_j_c_group.html">   15</a></span>&#160;<span class="keyword">class </span>JCSDK_API <a class="code" href="class_j_c_group.html">JCGroup</a> {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_j_c_group.html#a05a6142df12d9b620c32e00074f88565">   25</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#a05a6142df12d9b620c32e00074f88565">fetchGroups</a>(UINT64 updateTime) = 0;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_j_c_group.html#adcdfa66782ca7de28c116314aa4d3a0e">   35</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#adcdfa66782ca7de28c116314aa4d3a0e">fetchGroupInfo</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* groupId, UINT64 updateTime) = 0;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_j_c_group.html#afa9debe40484bf21a20bde91c690c5b2">   49</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#afa9debe40484bf21a20bde91c690c5b2">createGroup</a>(std::list&lt;JCGroupMember&gt;* members, <span class="keyword">const</span> <span class="keywordtype">char</span>* groupName, <a class="code" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ga906a9f65ccd60e7b876c9513c0848b49">JCGroupType</a> type, <span class="keyword">const</span> <span class="keywordtype">char</span>* customProperties) = 0;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_j_c_group.html#ae218f7524ceb1bd3b94845ad78f80643">   58</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#ae218f7524ceb1bd3b94845ad78f80643">updateGroup</a>(<a class="code" href="class_j_c_group_item.html">JCGroupItem</a>* groupItem) = 0;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_j_c_group.html#afb3d4d8becc395cc5069ed6ea0f70019">   69</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#afb3d4d8becc395cc5069ed6ea0f70019">dissolve</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* groupId) = 0;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_j_c_group.html#a9df6a914c9cdae000d8b0928d6bf524a">   78</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#a9df6a914c9cdae000d8b0928d6bf524a">leave</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* groupId) = 0;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_j_c_group.html#ac6f465e033f82975d357560227ef3de1">   88</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#ac6f465e033f82975d357560227ef3de1">dealMembers</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* groupId, std::list&lt;JCGroupMember&gt;* members) = 0;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_j_c_group.html#aba12899e8c3fa097c350af566dc507f6">  101</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#aba12899e8c3fa097c350af566dc507f6">updateGroupComment</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* groupId, <span class="keyword">const</span> <span class="keywordtype">char</span>* nickName, <span class="keyword">const</span> <span class="keywordtype">char</span>* tag) = 0;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="class_j_c_group.html#a8e89e1278368b3e53c351e1889ef0b08">  113</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_group.html#a8e89e1278368b3e53c351e1889ef0b08">setDnd</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* groupId, <span class="keywordtype">bool</span> dnd) = 0;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;};</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ga7a981057ead48f5af40a577e07769212">  130</a></span>&#160;<span class="keyword">extern</span> JCSDK_API <a class="code" href="class_j_c_group.html">JCGroup</a>* <a class="code" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ga7a981057ead48f5af40a577e07769212">createJCGroup</a>(<a class="code" href="class_j_c_client.html">JCClient</a>* client, <a class="code" href="class_j_c_group_callback.html">JCGroupCallback</a>* callback);</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#gaa462c1732cb653b9658887aa58c2af30">  134</a></span>&#160;<span class="keyword">extern</span> JCSDK_API <span class="keywordtype">void</span> <a class="code" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#gaa462c1732cb653b9658887aa58c2af30">destroyJCGroup</a>();</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_j_c_client_html"><div class="ttname"><a href="class_j_c_client.html">JCClient</a></div><div class="ttdef"><b>Definition:</b> JCClient.h:90</div></div>
<div class="ttc" id="aclass_j_c_group_callback_html"><div class="ttname"><a href="class_j_c_group_callback.html">JCGroupCallback</a></div><div class="ttdef"><b>Definition:</b> JCGroupCallback.h:14</div></div>
<div class="ttc" id="aclass_j_c_group_html_a8e89e1278368b3e53c351e1889ef0b08"><div class="ttname"><a href="class_j_c_group.html#a8e89e1278368b3e53c351e1889ef0b08">JCGroup::setDnd</a></div><div class="ttdeci">virtual int setDnd(const char *groupId, bool dnd)=0</div></div>
<div class="ttc" id="agroup___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97_html_ga906a9f65ccd60e7b876c9513c0848b49"><div class="ttname"><a href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ga906a9f65ccd60e7b876c9513c0848b49">JCGroupType</a></div><div class="ttdeci">JCGroupType</div><div class="ttdef"><b>Definition:</b> JCGroupConstants.h:162</div></div>
<div class="ttc" id="aclass_j_c_group_html"><div class="ttname"><a href="class_j_c_group.html">JCGroup</a></div><div class="ttdef"><b>Definition:</b> JCGroup.h:15</div></div>
<div class="ttc" id="aclass_j_c_group_html_a9df6a914c9cdae000d8b0928d6bf524a"><div class="ttname"><a href="class_j_c_group.html#a9df6a914c9cdae000d8b0928d6bf524a">JCGroup::leave</a></div><div class="ttdeci">virtual int leave(const char *groupId)=0</div></div>
<div class="ttc" id="aclass_j_c_group_item_html"><div class="ttname"><a href="class_j_c_group_item.html">JCGroupItem</a></div><div class="ttdef"><b>Definition:</b> JCGroupItem.h:11</div></div>
<div class="ttc" id="aclass_j_c_group_html_ae218f7524ceb1bd3b94845ad78f80643"><div class="ttname"><a href="class_j_c_group.html#ae218f7524ceb1bd3b94845ad78f80643">JCGroup::updateGroup</a></div><div class="ttdeci">virtual int updateGroup(JCGroupItem *groupItem)=0</div></div>
<div class="ttc" id="agroup___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97_html_gaa462c1732cb653b9658887aa58c2af30"><div class="ttname"><a href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#gaa462c1732cb653b9658887aa58c2af30">destroyJCGroup</a></div><div class="ttdeci">JCSDK_API void destroyJCGroup()</div></div>
<div class="ttc" id="aclass_j_c_group_html_aba12899e8c3fa097c350af566dc507f6"><div class="ttname"><a href="class_j_c_group.html#aba12899e8c3fa097c350af566dc507f6">JCGroup::updateGroupComment</a></div><div class="ttdeci">virtual int updateGroupComment(const char *groupId, const char *nickName, const char *tag)=0</div></div>
<div class="ttc" id="agroup___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97_html_ga7a981057ead48f5af40a577e07769212"><div class="ttname"><a href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ga7a981057ead48f5af40a577e07769212">createJCGroup</a></div><div class="ttdeci">JCSDK_API JCGroup * createJCGroup(JCClient *client, JCGroupCallback *callback)</div></div>
<div class="ttc" id="aclass_j_c_group_html_afa9debe40484bf21a20bde91c690c5b2"><div class="ttname"><a href="class_j_c_group.html#afa9debe40484bf21a20bde91c690c5b2">JCGroup::createGroup</a></div><div class="ttdeci">virtual int createGroup(std::list&lt; JCGroupMember &gt; *members, const char *groupName, JCGroupType type, const char *customProperties)=0</div></div>
<div class="ttc" id="aclass_j_c_group_html_afb3d4d8becc395cc5069ed6ea0f70019"><div class="ttname"><a href="class_j_c_group.html#afb3d4d8becc395cc5069ed6ea0f70019">JCGroup::dissolve</a></div><div class="ttdeci">virtual int dissolve(const char *groupId)=0</div></div>
<div class="ttc" id="aclass_j_c_group_html_a05a6142df12d9b620c32e00074f88565"><div class="ttname"><a href="class_j_c_group.html#a05a6142df12d9b620c32e00074f88565">JCGroup::fetchGroups</a></div><div class="ttdeci">virtual int fetchGroups(UINT64 updateTime)=0</div></div>
<div class="ttc" id="aclass_j_c_group_html_ac6f465e033f82975d357560227ef3de1"><div class="ttname"><a href="class_j_c_group.html#ac6f465e033f82975d357560227ef3de1">JCGroup::dealMembers</a></div><div class="ttdeci">virtual int dealMembers(const char *groupId, std::list&lt; JCGroupMember &gt; *members)=0</div></div>
<div class="ttc" id="aclass_j_c_group_html_adcdfa66782ca7de28c116314aa4d3a0e"><div class="ttname"><a href="class_j_c_group.html#adcdfa66782ca7de28c116314aa4d3a0e">JCGroup::fetchGroupInfo</a></div><div class="ttdeci">virtual int fetchGroupInfo(const char *groupId, UINT64 updateTime)=0</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
